package com.jiazhong.example.project.bookstore.backend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jiazhong.example.project.bookstore.commons.bean.Book;
import com.jiazhong.example.project.bookstore.commons.util.JsonResult;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

@Service
public interface BookService extends IService<Book> {

    JsonResult find(int page);

    JsonResult saveBook(Book book, MultipartFile file) throws IOException;

    JsonResult findBookByCategoryId(String categoryId);

    JsonResult findAll();
}
